/** When your routing table is too long, you can split it into small modules **/

import Layout from '@/layout'

const financeRouter = {
  path: '/finance',
  component: Layout,
  redirect: 'noRedirect',
  name: '资金',
  hidden:true,
  meta: {
    title: '资金',
    icon: 'money'
  },
  children: [
    {
      path: 'main',
      component: () => import('@/views/finance/main'),
      name: '资金',
      hidden:true,
      meta: { title: '资金' }
    },
    {
      path: 'account',
      component: () => import('@/views/finance/account/account'),
      name: '账户',
      hidden:true,
      meta: { title: '账户'}
    },
    {
      path: 'withdraw',
      component: () => import('@/views/finance/withdraw/main'),
      name: '取款',
      hidden:true,
      meta: { title: '取款' }
    },
    {
      path: 'deposit',
      component: () => import('@/views/finance/deposit/main'),
      name: '存款',
      hidden:true,
      meta: { title: '存款'}
    },
    {
      path: 'revenue',
      component: () => import('@/views/finance/revenue/main'),
      name: '收入',
      hidden:true,
      meta: { title: '收入' }
    },
    {
      path: 'expenses',
      component: () => import('@/views/finance/expenses/main'),
      name: '支出',
      hidden:true,
      meta: { title: '支出'}
    },
    {
      path: 'subject',
      component: () => import('@/views/finance/subject/main'),
      name: '科目',
      hidden:true,
      meta: { title: '科目'}
    },
    {
      path: 'flowing',
      component: () => import('@/views/finance/flowing'),
      name: '资金流水',
      hidden:true,
      meta: { title: '资金流水' }
    }
  ]
}

export default financeRouter
